     <script>
		$(document).ready(function() {

		$('.menu').load('<?=base_url('home/halaman')?>/');

			$('.form input').bind('click', function() {
				$('.form .arrow-cont').each(function(i) {
					$(this).attr('class', 'arrow-cont');
				});
				$(this).parent('td').parent('tr').attr('class', 'arrow-cont current');		
			});
			$('table#addpage tr.arrow-cont').bind('click', function() {
				var thisobj=$(this);
				$.ajax({
					type: 'POST',
					url: '<?=base_url('home/addpage')?>',
					data: 'title='+$(thisobj).attr('title')+'&id_client='+$('#id_client').val()+'&page_number='+$('#page_number').val()+'&id_page='+$(thisobj).attr('id'),
					beforeSend: function() {				
						$('table#addpage tr.arrow-cont').append("<img style='float: right; position: absolute; top: -5px; right: 3px;' id='wait' src='<?=$this->config->item('images').'loading.png';?>' />");
					},
					success: function(data) {
						$('#wait').remove();
						$('#content').load('<?=base_url('home/editdetail')?>/'+data);
						$('.menu').html('');
					}
				});
				return false;				
			});		
		});
	 </script>
	 <div class="form">
	 <input type="hidden" value="<?=$id_client?>" id="id_client" name="id_client" />
	 <input type="hidden" value="<?=$page_number?>" id="page_number" name="page_number" />
      <table id="addpage" width="100%">
          <tr class="arrow-cont current" id="<?=@$currentpage[0]['id']?>" title="<?=@$currentpage[0]['title']?>" >
             <td><label>1</label></td>
             <td class="submitpage">
				<?=@$currentpage[0]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[1]['id']?>" title="<?=@$currentpage[1]['title']?>" >
             <td><label>2</label></td>
             <td class="submitpage">
				<?=@$currentpage[1]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[2]['id']?>" title="<?=@$currentpage[2]['title']?>" >
             <td><label>3</label></td>
             <td class="submitpage">
				<?=@$currentpage[2]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[3]['id']?>" title="<?=@$currentpage[3]['title']?>" >
             <td><label>4</label></td>
             <td class="submitpage">
				<?=@$currentpage[3]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[4]['id']?>" title="<?=@$currentpage[4]['title']?>" >
             <td><label>5</label></td>
             <td class="submitpage">
				<?=@$currentpage[4]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[5]['id']?>" title="<?=@$currentpage[5]['title']?>" >
             <td><label>6</label></td>
             <td class="submitpage">
				<?=@$currentpage[5]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[6]['id']?>" title="<?=@$currentpage[6]['title']?>" >
             <td><label>7</label></td>
             <td class="submitpage">
				<?=@$currentpage[6]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[7]['id']?>" title="<?=@$currentpage[7]['title']?>" >
             <td><label>8</label></td>
             <td class="submitpage">
				<?=@$currentpage[7]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[8]['id']?>" title="<?=@$currentpage[8]['title']?>" >
             <td><label>9</label></td>
             <td class="submitpage">
				<?=@$currentpage[8]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[9]['id']?>" title="<?=@$currentpage[9]['title']?>" >
             <td><label>10</label></td>
             <td class="submitpage">
				<?=@$currentpage[9]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont"  id="<?=@$currentpage[10]['id']?>" title="<?=@$currentpage[10]['title']?>">
             <td><label>11</label></td>
             <td class="submitpage">
				<?=@$currentpage[10]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[11]['id']?>" title="<?=@$currentpage[11]['title']?>" >
             <td><label>12</label></td>
             <td class="submitpage">
				<?=@$currentpage[11]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[12]['id']?>" title="<?=@$currentpage[12]['title']?>" >
             <td><label>13</label></td>
             <td class="submitpage">
				<?=@$currentpage[12]['title']?>
			 </td>
          </tr>
          <tr class="arrow-cont" id="<?=@$currentpage[13]['id']?>" title="<?=@$currentpage[13]['title']?>" >
             <td><label>14</label></td>
             <td class="submitpage">
				<?=@$currentpage[13]['title']?>
			 </td>
          </tr>
         
       </table>
     </div><!-- end form -->